package com.xhs.dto.request;

import lombok.Data;

import javax.validation.constraints.Min;

/**
 * @desc: 分页入参
 * @projectName: springboot-mongodb
 * @author: xhs
 * @date: 2024-1-6 006 21:38
 * @version: JDK 1.8
 */
@Data
public class PageParams {

    /**
     * 页码
     */
    @Min(value = 1, message = "页码不能小于1")
    private Integer pageNumber;

    /**
     * 每页显示条数
     */
    @Min(value = 1, message = "每页显示条数不能小于1")
    private Integer pageSize;
}
